@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* =======================================================================
   ANPAQ - SITE INSTITUCIONAL (Com Efeitos Visuais Premium)
   ======================================================================= */

:root {
  --anpaq-dark-900: #1A1410;
  --anpaq-dark-800: #211A14;
  --anpaq-cream-100: #FDFBF7;
  --anpaq-cream-300: #F5F1E8;
  --anpaq-cream-400: #EDE7DA;
  --anpaq-gold-700: #8B6914;
  --anpaq-gold-500: #C9A227;
  --anpaq-gold-400: #D4A64A;
  --anpaq-gold-300: #E0C06E;
  --anpaq-gold-100: #F5EBC5;

  --anpaq-text-dark: #2C241D;
  --anpaq-text-muted: #7D6F63;
  --anpaq-text-light: #F5F1E8;
  --anpaq-text-light-muted: rgba(245,241,232,0.7);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-sm: 0 4px 12px rgba(44,36,29,0.06);
  --shadow-md: 0 12px 30px rgba(44,36,29,0.1);
  --shadow-gold: 0 10px 30px rgba(201,162,39,0.25);
}

/* ── Reset Básicos ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--anpaq-cream-100);
  color: var(--anpaq-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Textura super leve de granulação estilo papel */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* ── Animações (Charme & Elegância) ── */
@keyframes shimmer {
  0% { transform: translateX(-150%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
@keyframes glowPulse {
  0% { box-shadow: 0 0 0 0 rgba(201,162,39,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(201,162,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
}
@keyframes goldShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Grid e Contêiner ── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
.section-dark { background: var(--anpaq-dark-900); color: var(--anpaq-text-light); }
.section-alt { background: var(--anpaq-cream-300); }

/* ── Tipografia Global ── */
h1, h2, h3, h4, .font-display { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
.section-title { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.5rem; color: var(--anpaq-text-dark); position: relative; display: inline-block; }
.section-title span { color: var(--anpaq-gold-500); }
.section-dark .section-title { color: var(--anpaq-text-light); }
.overline {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--anpaq-gold-300), var(--anpaq-gold-500), var(--anpaq-gold-700));
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 0.5rem; animation: goldShine 4s linear infinite;
}
.gold-line { height: 2px; width: 80px; background: linear-gradient(90deg, transparent, var(--anpaq-gold-500), transparent); margin: 0 auto 2rem; position: relative; overflow: hidden; }
.gold-line-left { height: 2px; width: 60px; background: linear-gradient(90deg, var(--anpaq-gold-500), transparent); margin-bottom: 2rem; position: relative; overflow: hidden; }

/* ── Botões (Com Efeito Shimmer) ── */
.btn {
  display: inline-block; padding: 0.875rem 1.75rem; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.05em;
  text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: all 0.4s var(--ease-smooth);
  position: relative; overflow: hidden; border: 1px solid transparent; z-index: 1;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.2); transform: translateX(-150%) skewX(-15deg); z-index: -1;
}
.btn:hover::before { animation: shimmer 0.7s forwards; }

.btn-primary { background: var(--anpaq-gold-500); color: var(--anpaq-dark-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--anpaq-gold-400); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-outline { border-color: rgba(201,162,39,0.4); color: var(--anpaq-gold-700); }
.btn-outline:hover { background: var(--anpaq-gold-500); color: var(--anpaq-dark-900); border-color: var(--anpaq-gold-500); }

/* ── Header & Navbar (Glass e Glow) ── */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(253, 251, 247, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,162,39,0.1); transition: all 0.4s var(--ease-smooth); padding: 1.25rem 0;
}
.navbar.scrolled { padding: 0.75rem 0; background: rgba(253, 251, 247, 0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.05); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 45px; width: auto; object-fit: contain; transition: transform 0.3s; }
.nav-brand:hover .logo-img { transform: scale(1.05); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-item { position: relative; font-size: 0.875rem; font-weight: 500; color: var(--anpaq-text-dark); padding: 0.5rem 0; }
/* Underline effect nos menus */
.nav-item > a::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
  background-color: var(--anpaq-gold-500); transition: width 0.3s var(--ease-smooth);
}
.nav-item:hover > a::after { width: 100%; }
.nav-item:hover > a { color: var(--anpaq-gold-700); }

/* Dropdown Submenu Animado */
.dropdown-menu {
  position: absolute; top: 120%; left: 0; min-width: 250px;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
  border: 1px solid rgba(201,162,39,0.15); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(15px);
  transition: all 0.4s var(--ease-smooth); padding: 0.5rem 0; border-radius: 8px;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); top: 100%; }
.dropdown-item { display: block; padding: 0.75rem 1.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--anpaq-text-muted); transition: all 0.3s; }
.dropdown-item:hover { background: rgba(201,162,39,0.08); color: var(--anpaq-gold-700); padding-left: 2rem; }
.nav-search { color: var(--anpaq-gold-500); font-size: 1.1rem; cursor: pointer; transition: transform 0.3s; }
.nav-search:hover { transform: scale(1.2) rotate(5deg); }

/* Mobile Toggle */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--anpaq-gold-500); cursor: pointer; }

/* ── Hero Slider (Com Parallax e Glow) ── */
.hero { position: relative; height: 100vh; min-height: 650px; display: flex; align-items: center; background: var(--anpaq-dark-900); overflow: hidden; }
/* Brilho ao fundo no hero */
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px; top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; z-index: 1; pointer-events: none;
}
.hero-slider { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.active { opacity: 1; z-index: 1; }
/* Efeito Ken Burns na imagem */
.hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transform: scale(1.05); transition: transform 8s linear; }
.hero-slide.active img { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,20,16,0.95) 0%, rgba(26,20,16,0.3) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 800px; padding-top: 5rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }

/* ── Parceiros (Anunciantes Premium) ── */
.partners-section { background: var(--anpaq-cream-100); padding: 4rem 0; border-bottom: 1px solid var(--anpaq-cream-400); position: relative; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; align-items: center; justify-items: center; }
.placeholder-box {
  width: 100%; max-width: 250px; height: 120px; border: 2px dashed rgba(201,162,39,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--anpaq-gold-500);
  font-size: 0.875rem; font-weight: 600; text-align: center; border-radius: 12px;
  background: rgba(201,162,39,0.02); transition: all 0.4s var(--ease-smooth); cursor: pointer;
  position: relative; overflow: hidden;
}
/* Efeito de pulse gold ao hover nos parceiros */
.placeholder-box:hover {
  transform: translateY(-5px); border-color: var(--anpaq-gold-500);
  background: rgba(201,162,39,0.08); box-shadow: 0 10px 25px rgba(201,162,39,0.15);
}
.placeholder-box::after {
  content: ''; position: absolute; width: 50px; height: 100%; top: 0; left: -100%;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.2), transparent);
  transition: all 0.5s;
}
.placeholder-box:hover::after { left: 100%; transition: all 0.6s ease-in-out; }

/* ── Sobre a ANPAQ (Cards 3D e Hover Icon) ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text p { margin-bottom: 1.2rem; color: var(--anpaq-text-muted); font-size: 1.05rem; }
.service-card {
  display: flex; gap: 1.5rem; padding: 2.5rem; background: #fff; border: 1px solid var(--anpaq-cream-400);
  border-radius: 12px; margin-bottom: 2rem; transition: all 0.5s var(--ease-smooth); position: relative;
  z-index: 1; overflow: hidden;
}
/* Fundo expansivo no hover */
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(201,162,39,0.05) 0%, transparent 100%);
  z-index: -1; opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,0.3); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 72px; height: 72px; min-width: 72px; background: var(--anpaq-gold-100); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--anpaq-gold-500);
  transition: transform 0.4s var(--ease-smooth), background 0.4s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); background: var(--anpaq-gold-500); color: #fff; box-shadow: var(--shadow-gold); }

/* ── Últimas Notícias (Cards com Imagem Escalável) ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.news-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 12px; overflow: hidden;
  transition: all 0.4s var(--ease-smooth); display: flex; flex-direction: column; position: relative;
}
.news-img-wrapper { overflow: hidden; height: 220px; }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-8px); }
.news-card:hover .news-img { transform: scale(1.08); }
.news-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; background: #fff; position: relative; }
.badge { display: inline-block; padding: 0.35rem 0.85rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; border-radius: 20px; margin-bottom: 1.2rem; align-self: flex-start; letter-spacing: 0.05em; }
.badge-outline { border: 1px solid var(--anpaq-gold-500); color: var(--anpaq-gold-700); background: rgba(201,162,39,0.05); }
.badge-gold { background: var(--anpaq-gold-500); color: #fff; box-shadow: 0 4px 10px rgba(201,162,39,0.3); }
.news-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.4; color: var(--anpaq-text-dark); transition: color 0.3s; }
.news-card:hover .news-title { color: var(--anpaq-gold-700); }
.news-link { margin-top: auto; color: var(--anpaq-gold-500); font-weight: 600; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.news-card:hover .news-link { gap: 1rem; }

/* ── Contato & Mapa (Form Input Animado) ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.form-group { margin-bottom: 1.5rem; position: relative; }
.form-label { display: block; font-size: 0.875rem; margin-bottom: 0.5rem; color: var(--anpaq-text-light-muted); font-weight: 500; }
.form-control {
  width: 100%; padding: 1rem 1.25rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: #fff; font-family: inherit; font-size: 1rem; transition: all 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.form-control:focus { outline: none; border-color: var(--anpaq-gold-500); background: rgba(201,162,39,0.02); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 4px rgba(201,162,39,0.1); }
.map-wrapper { position: relative; }
.map-wrap { border-radius: 12px; overflow: hidden; height: 100%; min-height: 450px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
/* Brilho decorativo no mapa */
.map-wrapper::after { content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); width: 80%; height: 20px; background: rgba(201,162,39,0.15); filter: blur(20px); z-index: -1; }

/* ── Footer ── */
.footer { background: #0A0806; color: var(--anpaq-text-light-muted); padding: 5rem 0 2rem; font-size: 0.875rem; border-top: 1px solid rgba(201,162,39,0.15); position: relative; overflow: hidden; }
/* Brilho sutil dourado no footer */
.footer::before { content: ''; position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%); width: 500px; height: 200px; background: radial-gradient(ellipse, rgba(201,162,39,0.1) 0%, rgba(0,0,0,0) 70%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-title { color: #fff; font-size: 1.25rem; margin-bottom: 1.5rem; font-family: var(--font-display); }
.footer-links li { margin-bottom: 0.875rem; }
.footer-links a { position: relative; display: inline-block; }
.footer-links a::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background-color: var(--anpaq-gold-500); transition: width 0.3s; }
.footer-links a:hover { color: var(--anpaq-gold-300); }
.footer-links a:hover::after { width: 100%; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* ── Responsividade ── */
@media (max-width: 991px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%; background: rgba(253, 251, 247, 0.98);
    flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-smooth); border-bottom: 1px solid var(--anpaq-cream-400); box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .nav-links.active { max-height: 600px; }
  .nav-item { padding: 1rem 1.5rem; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav-item > a::after { display: none; } /* Remove hover lines on mobile */
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(0,0,0,0.02); padding-left: 1.5rem; display: none; margin-top: 0.5rem; }
  .has-dropdown.open .dropdown-menu { display: block; opacity: 1; visibility: visible; }
  .mobile-toggle { display: block; }
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Scroll Reveal System ── */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-smooth); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
